import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    currentLanguage: 'zh',
    supportedPlatforms: [
      { name: 'TikTok', icon: 'tiktok', url: 'https://www.tiktok.com' },
      { name: 'Douyin', icon: 'douyin', url: 'https://www.douyin.com' },
      { name: 'YouTube', icon: 'youtube', url: 'https://www.youtube.com' },
      { name: 'Instagram', icon: 'instagram', url: 'https://www.instagram.com' }
    ]
  },
  mutations: {
    setLanguage(state, lang) {
      state.currentLanguage = lang
    }
  },
  actions: {
    changeLanguage({ commit }, lang) {
      commit('setLanguage', lang)
    }
  },
  modules: {
  }
}) 